<?php
Route::group(['prefix'=>'user'],function (){
    // 用户信息
    Route::get('info', 'UserController@info');
    // 当前用户是否微信鉴权
    Route::post('ifOauthWechatUser', 'UserController@ifOauthWechatUser');
    // 获取已经微信授权用户,得到用户的跳转路径
    Route::post('oauthWechatUser', 'UserController@oauthWechatUser');
});
Route::group(['prefix'=>'question'],function (){
    // 问卷调查的列表
    Route::post('list', 'QuestionController@list');
    Route::post('detail', 'QuestionController@detail');
    Route::post('delete', 'QuestionController@delete');
});
Route::group(['prefix'=>'questionType'],function (){
    // 问卷调查分类的列表
    Route::post('list', 'QuestionTypeController@list');
    Route::post('save', 'QuestionTypeController@save');
    Route::post('delete', 'QuestionTypeController@delete');
});
Route::group(['prefix'=>'questionTypeOption'],function (){
    // 问卷调查分类选项的列表
    Route::post('list', 'QuestionTypeOptionController@list');
    Route::post('save', 'QuestionTypeOptionController@save');
    Route::post('delete', 'QuestionTypeOptionController@delete');
});
